package com.file.manage.infrastructure.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.file.manage.domain.entity.User;
import com.file.manage.domain.param.UserQueryParam;
import com.file.manage.infrastructure.base.dao.BaseDao;

import java.util.List;
import java.util.Map;

/**
 * @author H41
 * @Type UserDao.java
 * @date 2025/5/31 12:01
 * @Desc
 */
public interface UserDao extends BaseDao<User> {

    /**
     * 根据用户id列表获取用户信息
     */
    Map<String, User> mapByIds(List<String> userIds);

    List<User> selectUserByParam(UserQueryParam param);
    List<User> selectUserByName(String userName);

    Page<User> pageUserByParam(Page<User> page, UserQueryParam param);
}
